
%td{id:"cr-opts-#{credit_record.id.to_s}"}
  %span{class: "label #{credit_record.workflow_state_class}"}= credit_record.readable_state
  - if admin_signed_in?
    - if credit_record.can_approve?
      |
      %span
        = form_tag record_approve_path(credit_record.id), method: :put, remote: true, style:'display:inline;margin:0' do
          %button.btn.btn-success{type:'submit', name: nil}
            %i.glyphicon.glyphicon-ok
            审核通过
    - if credit_record.can_reject?
      |
      %span
        = form_tag record_reject_path(credit_record.id), method: :put, remote: true, style:'display:inline;margin:0' do
          %button.btn.btn-danger{type:'submit', name: nil} 
            %i.glyphicon.glyphicon-remove
            驳回
